package com.pinda.auth.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色的资源
 * </p>
 *
 * @author 黄杰
 * @since 2023-06-15
 * @since 2023-06-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pd_auth_role_authority")
public class PdAuthRoleAuthority implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 权限id
#c_auth_resource
#c_auth_menu
     */
    private Long authorityId;

    /**
     * 权限类型
#AuthorizeType{MENU:菜单;RESOURCE:资源;}
     */
    private String authorityType;

    /**
     * 角色id
#c_auth_role
     */
    private Long roleId;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 创建人
     */
    private Long createUser;


}
